package session03.bean;

import java.util.ArrayList;

public class TeamBean {
    private int teamID;
    private String name;
    private String country;
    private ArrayList<PlayerBean> myPlayer = new ArrayList<>();

    public TeamBean() {

    }

    public TeamBean(int teamID, String name) {
        this.teamID = teamID;
        this.name = name;
    }

    public TeamBean(int teamID, String name, String country) {
        this.teamID = teamID;
        this.name = name;
        this.country = country;
    }

    public int getTeamID() {
        return teamID;
    }

    public void setTeamID(int teamID) {
        this.teamID = teamID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public ArrayList<PlayerBean> getMyPlayer() {
        return myPlayer;
    }

    public void setMyPlayer(ArrayList<PlayerBean> myPlayer) {
        this.myPlayer = myPlayer;
    }

    @Override
    public String toString() {
        return "TeamBean{" +
                "teamID=" + teamID +
                ", name='" + name + '\'' +
                ", country='" + country + '\'' +
                '}';
    }
}
